From: Jonas Dreßler Date: Fri, 16 Dec 2022 11:09:00 +0000 (+0100) Subject: appDisplay: Disable overshoot gesture in multi-monitor setups X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~186 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=eacc55334f06c9f7eacfc6b07207fe940e11acfa;p=gnome-shell.git appDisplay: Disable overshoot gesture in multi-monitor setups The "bump against monitor edge" thing can't work when there's a monitor adjacent to the current one, so just disable the gesture in case there's more than a single monitor. Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index bb2cb5922..343f6fd81 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -868,6 +868,11 @@ var BaseAppView = GObject.registerClass({ } _dragMaybeSwitchPageImmediately(dragEvent) { + // When there's an adjacent monitor, this gesture conflicts with + // dragging to the adjacent monitor, so disable in multi-monitor setups + if (Main.layoutManager.monitors.length > 1) + return false; + // Already animating if (this._adjustment.get_transition('value') !== null) return false;